<template>
	<view class="container">
		<!-- 顶部问候区域 -->
		<view class="header-section">
			<view class="greeting">
				<text class="greeting-text">名师好课 解锁高分</text>
				<view class="features">
					<text class="feature-item">考情分析</text>
					<text class="feature-item">备考规划</text>
					<text class="feature-item">高频考点</text>
				</view>
				<view class="evaluation-btn">了解详情</view>
			</view>
			<view class="header-image">
				<view class="image-placeholder">📚</view>
			</view>
		</view>

		<!-- 功能卡片区域 -->
		<view class="function-cards">
			<view class="card-row">
				<view class="function-card main-card">
					<view class="card-icon">📷</view>
					<view class="card-content">
						<text class="card-title">拍照搜题</text>
						<text class="card-subtitle">开启组卷之旅</text>
						<view class="card-stats">
							<text>已组卷 0</text>
							<text>还没有试卷</text>
							<text>快去组卷吧</text>
						</view>
					</view>
				</view>
				<view class="small-cards">
					<view class="function-card small-card green">
						<view class="card-icon">▶️</view>
						<text class="card-title">试卷讲评</text>
					</view>
					<view class="function-card small-card pink">
						<view class="card-icon">📝</view>
						<text class="card-title">错题整理</text>
					</view>
					<view class="function-card small-card purple">
						<view class="card-icon">📊</view>
						<text class="card-title">题库组卷</text>
					</view>
					<view class="function-card small-card orange">
						<view class="card-icon">🏆</view>
						<text class="card-title">试卷中心</text>
					</view>
				</view>
			</view>
		</view>

		<!-- 最新任务 -->
		<view class="section">
			<view class="section-header">
				<text class="section-title">最新任务</text>
				<text class="section-more">查看更多 ></text>
			</view>
			<view class="task-card">
				<view class="task-info">
					<view class="task-subject">科组长(物理)</view>
					<view class="task-title">2024-2025年上学期九年级3月第一次模考</view>
					<view class="task-time">时间：2024-11-19</view>
				</view>
				<view class="task-progress">
					<view class="progress-circle">
						<text class="progress-text">90/276</text>
					</view>
					<view class="progress-details">
						<view class="progress-item">
							<text class="progress-label">第11-15题</text>
						</view>
						<view class="progress-item">
							<text class="progress-label">我的进度：27.00%</text>
						</view>
						<view class="progress-item">
							<text class="progress-label">阅卷老师：16人</text>
						</view>
					</view>
				</view>
				<view class="progress-bars">
					<view class="progress-bar">
						<text class="bar-label">当前题目进度</text>
						<view class="bar-container">
							<view class="bar-fill" style="width: 18.35%"></view>
						</view>
						<text class="bar-percentage">18.35%</text>
					</view>
					<view class="progress-bar">
						<text class="bar-label">当前科目进度</text>
						<view class="bar-container">
							<view class="bar-fill orange-fill" style="width: 18.35%"></view>
						</view>
						<text class="bar-percentage">18.35%</text>
					</view>
				</view>
				<view class="task-action">
					<button class="action-btn">科目阅卷(9)</button>
				</view>
			</view>
		</view>

		<!-- 最新试卷 -->
		<view class="section">
			<view class="section-header">
				<text class="section-title">最新试卷</text>
				<text class="section-more">查看更多 ></text>
			</view>
			<view class="paper-list">
				<view class="paper-item">
					<view class="paper-icon blue">📝</view>
					<view class="paper-info">
						<text class="paper-title">2023年02月20日微信用户的初中物理组卷</text>
						<text class="paper-date">收录：2024-11-19</text>
					</view>
					<text class="paper-action">去组卷 ></text>
				</view>
				<view class="paper-item">
					<view class="paper-icon green">📊</view>
					<view class="paper-info">
						<text class="paper-title">2023年02月20日微信用户的初中物理组卷</text>
						<text class="paper-date">收录：2024-11-19</text>
					</view>
					<text class="paper-action">去组卷 ></text>
				</view>
				<view class="paper-item">
					<view class="paper-icon orange">🏆</view>
					<view class="paper-info">
						<text class="paper-title">2023年02月20日微信用户的初中物理组卷</text>
						<text class="paper-date">收录：2024-11-19</text>
					</view>
					<text class="paper-action">去组卷 ></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			
		}
	},
	onLoad() {
		
	},
	methods: {
		
	}
}
</script>

<style lang="less" scoped>
.container {
	background: linear-gradient(135deg, #4DD0E1 0%, #81C784 100%);
	min-height: 100vh;
	padding: 20rpx;
}

.header-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 40rpx 20rpx;
	margin-bottom: 30rpx;
}

.greeting {
	flex: 1;
}

.greeting-text {
	font-size: 48rpx;
	font-weight: bold;
	color: white;
	display: block;
	margin-bottom: 20rpx;
}

.features {
	display: flex;
	gap: 20rpx;
	margin-bottom: 30rpx;
}

.feature-item {
	background: rgba(255, 255, 255, 0.2);
	color: white;
	padding: 8rpx 16rpx;
	border-radius: 20rpx;
	font-size: 24rpx;
}

.evaluation-btn {
	background: white;
	color: #4DD0E1;
	padding: 16rpx 32rpx;
	border-radius: 25rpx;
	font-size: 28rpx;
	font-weight: bold;
	width: fit-content;
}

.header-image {
	width: 200rpx;
	height: 200rpx;
}

.image-placeholder {
	width: 100%;
	height: 100%;
	border: 3rpx dashed rgba(255, 255, 255, 0.5);
	border-radius: 20rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 60rpx;
	background: rgba(255, 255, 255, 0.1);
}

.function-cards {
	margin-bottom: 30rpx;
}

.card-row {
	display: flex;
	gap: 20rpx;
}

.main-card {
	flex: 2;
	background: #2196F3;
	color: white;
	padding: 30rpx;
	border-radius: 20rpx;
	display: flex;
	flex-direction: column;
}

.small-cards {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15rpx;
}

.small-card {
	padding: 25rpx;
	border-radius: 15rpx;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.green { background: #4CAF50; color: white; }
.pink { background: #E91E63; color: white; }
.purple { background: #9C27B0; color: white; }
.orange { background: #FF9800; color: white; }

.card-icon {
	font-size: 40rpx;
	margin-bottom: 10rpx;
}

.card-title {
	font-size: 28rpx;
	font-weight: bold;
	margin-bottom: 8rpx;
}

.card-subtitle {
	font-size: 24rpx;
	opacity: 0.8;
	margin-bottom: 15rpx;
}

.card-stats text {
	display: block;
	font-size: 22rpx;
	opacity: 0.9;
	margin-bottom: 5rpx;
}

.section {
	background: white;
	border-radius: 20rpx;
	padding: 30rpx;
	margin-bottom: 30rpx;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25rpx;
}

.section-title {
	font-size: 36rpx;
	font-weight: bold;
	color: #333;
}

.section-more {
	font-size: 28rpx;
	color: #4DD0E1;
}

.task-card {
	background: #F8F9FA;
	border-radius: 15rpx;
	padding: 25rpx;
}

.task-info {
	margin-bottom: 20rpx;
}

.task-subject {
	background: #E3F2FD;
	color: #1976D2;
	padding: 8rpx 16rpx;
	border-radius: 20rpx;
	font-size: 24rpx;
	width: fit-content;
	margin-bottom: 15rpx;
}

.task-title {
	font-size: 32rpx;
	font-weight: bold;
	color: #333;
	margin-bottom: 10rpx;
}

.task-time {
	font-size: 26rpx;
	color: #666;
}

.task-progress {
	display: flex;
	align-items: center;
	margin-bottom: 25rpx;
}

.progress-circle {
	width: 120rpx;
	height: 120rpx;
	border-radius: 50%;
	background: conic-gradient(#4DD0E1 0deg 97.2deg, #E0E0E0 97.2deg 360deg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 30rpx;
	position: relative;
}

.progress-circle::before {
	content: '';
	width: 80rpx;
	height: 80rpx;
	background: white;
	border-radius: 50%;
	position: absolute;
}

.progress-text {
	font-size: 24rpx;
	font-weight: bold;
	color: #333;
	z-index: 1;
}

.progress-details {
	flex: 1;
}

.progress-item {
	margin-bottom: 8rpx;
}

.progress-label {
	font-size: 26rpx;
	color: #666;
}

.progress-bars {
	margin-bottom: 25rpx;
}

.progress-bar {
	display: flex;
	align-items: center;
	margin-bottom: 15rpx;
}

.bar-label {
	font-size: 26rpx;
	color: #333;
	width: 200rpx;
}

.bar-container {
	flex: 1;
	height: 8rpx;
	background: #E0E0E0;
	border-radius: 4rpx;
	margin: 0 20rpx;
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	background: #4DD0E1;
	border-radius: 4rpx;
}

.orange-fill {
	background: #FF9800;
}

.bar-percentage {
	font-size: 26rpx;
	color: #333;
	width: 100rpx;
	text-align: right;
}

.action-btn {
	background: #4DD0E1;
	color: white;
	border: none;
	padding: 20rpx 40rpx;
	border-radius: 25rpx;
	font-size: 28rpx;
	width: 100%;
}

.paper-list {
	
}

.paper-item {
	display: flex;
	align-items: center;
	padding: 25rpx 0;
	border-bottom: 1rpx solid #F0F0F0;
}

.paper-item:last-child {
	border-bottom: none;
}

.paper-icon {
	width: 80rpx;
	height: 80rpx;
	border-radius: 15rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32rpx;
	margin-right: 20rpx;
}

.paper-icon.blue { background: #E3F2FD; }
.paper-icon.green { background: #E8F5E8; }
.paper-icon.orange { background: #FFF3E0; }

.paper-info {
	flex: 1;
}

.paper-title {
	font-size: 28rpx;
	color: #333;
	margin-bottom: 8rpx;
	display: block;
}

.paper-date {
	font-size: 24rpx;
	color: #999;
}

.paper-action {
	font-size: 26rpx;
	color: #4DD0E1;
}
</style> 